package com.hjq.common.entity.es;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @auther HJQ
 */
@Data
@ToString
public class SkuEsModel implements Serializable {



    private Long skuId;//ok
    private Long spuId;//ok
    private String skuTitle;//ok
    private BigDecimal skuPrice;//ok
    private String skuImg;//ok
    private BigDecimal saleCount;
    private Boolean hasStock;//ok
    private BigDecimal hotScore;
    private Long brandId;//ok
    private Long catalogId;//ok
    private String brandName;//ok
    private String brandImg;//ok
    private String catalogName;//ok
    private List<Attr> attrs;//ok
    /**     "attrs": {
    *         "type": "nested",
    *         "properties": {
    *           "attrId": {
    *             "type": "long"
    *           },
    *           "attrName": {
    *             "type": "keyword",
    *             "index": false,
    *             "doc_values": false
    *           },
    *           "attrValue": {
    *             "type": "keyword"**/
    @Data
    public static class Attr{
        private Long  attrId;
        private String attrName;
        private String attrValue;
    }
}

